package c.c.b.a.a.b;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import c.c.b.a.a.a.b;

public abstract class a extends b {

    /* renamed from: c.c.b.a.a.b.a$a  reason: collision with other inner class name */
    class C0094a implements b.a {

        /* renamed from: a  reason: collision with root package name */
        private final Context f2016a = this.f2018c;

        /* renamed from: b  reason: collision with root package name */
        private final Bundle f2017b = this.f2019d;

        /* renamed from: c  reason: collision with root package name */
        final /* synthetic */ Context f2018c;

        /* renamed from: d  reason: collision with root package name */
        final /* synthetic */ Bundle f2019d;

        C0094a(Context context, Bundle bundle) {
            this.f2018c = context;
            this.f2019d = bundle;
        }

        public final int a() {
            a.this.b(this.f2016a, this.f2017b);
            return -1;
        }
    }

    /* access modifiers changed from: protected */
    public abstract void b(Context context, Bundle bundle);

    /* access modifiers changed from: protected */
    public abstract boolean c();

    /* access modifiers changed from: protected */
    public abstract boolean d(Bundle bundle);

    public final void onReceive(Context context, Intent intent) {
        if (c.c.c.c.b.a(intent) || !"com.twofortyfouram.locale.intent.action.FIRE_SETTING".equals(intent.getAction())) {
            return;
        }
        if (context.getPackageName().equals(intent.getPackage()) || new ComponentName(context, getClass().getName()).equals(intent.getComponent())) {
            Bundle bundleExtra = intent.getBundleExtra("com.twofortyfouram.locale.intent.extra.BUNDLE");
            if (c.c.c.c.b.a(intent) || bundleExtra == null || !d(bundleExtra)) {
                return;
            }
            if (!c() || !c.c.c.a.a(11)) {
                b(context, bundleExtra);
            } else {
                a(new C0094a(context, bundleExtra), isOrderedBroadcast());
            }
        }
    }
}
